<?php



Breadcrumbs::register('home', function($breadcrumbs)
{
    $breadcrumbs->push('管理首页', route('home'));
});

Breadcrumbs::register('operation', function($breadcrumbs,$page)
{
    $breadcrumbs->parent("home");
    foreach($page as $item){
        if(isset($item['url'])){
            $breadcrumbs->push($item['name'],route($item['url']));
        }else{
            $breadcrumbs->push($item['name']);
        }

    }
});